import request from '@/utils/request'

// 查询用户入驻申请订单列表
export function listUserJoinorder(query) {
  return request({
    url: '/workbench/userJoinorder/list',
    method: 'get',
    params: query
  })
}

// 查询用户入驻申请订单详细
export function getUserJoinorder(id) {
  return request({
    url: '/workbench/userJoinorder/' + id,
    method: 'get'
  })
}

// 新增用户入驻申请订单
export function addUserJoinorder(data) {
  return request({
    url: '/workbench/userJoinorder',
    method: 'post',
    data: data
  })
}

// 修改用户入驻申请订单
export function updateUserJoinorder(data) {
  return request({
    url: '/workbench/userJoinorder',
    method: 'put',
    data: data
  })
}

// 删除用户入驻申请订单
export function delUserJoinorder(id) {
  return request({
    url: '/workbench/userJoinorder/' + id,
    method: 'delete'
  })
}

// 导出用户入驻申请订单
export function exportUserJoinorder(query) {
  return request({
    url: '/workbench/userJoinorder/export',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function importTemplate() {
    return request({
        url: '/workbench/userJoinorder/importTemplate',
        method: 'get'
    });
}

// 审核入驻申请
export function auditApply(data) {
  return request({
    url: '/workbench/userJoinorder/audit',
    method: 'post',
    data: data
  });
}


